xmlwfcheck()
{
if [ -z "${VALGRIND}" ]; then
- if which ${XMLWF} >/dev/null 2>&1; then
+ if command -v ${XMLWF} >/dev/null 2>&1; then
# xmlwf is a bit lame, exit status is always 0
rm -f ${TMPDIR}/xmlwf.out
${XMLWF} $1 2>&1 | tee ${TMPDIR}/xmlwf.out
fi
if [ -z "${VALGRIND}" ]; then
- if which ${XMLWF} >/dev/null 2>&1; then
+ if command -v ${XMLWF} >/dev/null 2>&1; then
echo "Running well-formed XML test"
for i in ${XMLS}
do
if [ "${RUNNINGVALGRIND}" != "0" ]; then
set -e
- if which xmllint > /dev/null;
+ if command -v xmllint > /dev/null;
then
KMLS=$(find ${REFERENCE} -name \*.kml)
for f in $KMLS
WORKDIR /app
# basic tools to build
-RUN dnf install --assumeyes git make valgrind diffutils which findutils langpacks-en && \
+RUN dnf install --assumeyes git make valgrind diffutils findutils langpacks-en && \
dnf clean all
# libraries used by gpsbabel. zlib and shapelib may or may not be used depending qmake options.
RUN dnf install --assumeyes libusbx-devel zlib-devel shapelib-devel && \
WORKDIR /app
# basic tools to build
-RUN dnf install --assumeyes git make valgrind diffutils which findutils langpacks-en && \
+RUN dnf install --assumeyes git make valgrind diffutils findutils langpacks-en && \
dnf clean all
# libraries used by gpsbabel. zlib and shapelib may or may not be used depending qmake options.
RUN dnf install --assumeyes libusbx-devel zlib-devel shapelib-devel && \
WORKDIR /app
# basic tools to build
-RUN dnf install --assumeyes git make valgrind diffutils which findutils langpacks-en && \
+RUN dnf install --assumeyes git make valgrind diffutils findutils langpacks-en && \
dnf clean all
# libraries used by gpsbabel. zlib and shapelib may or may not be used depending qmake options.
RUN dnf install --assumeyes libusbx-devel zlib-devel shapelib-devel && \
WORKDIR /app
# basic tools to build
-RUN dnf install --assumeyes git make valgrind diffutils which findutils langpacks-en && \
+RUN dnf install --assumeyes git make valgrind diffutils findutils langpacks-en && \
dnf clean all
# libraries used by gpsbabel. zlib and shapelib may or may not be used depending qmake options.
RUN dnf install --assumeyes libusb1-devel zlib-devel shapelib-devel && \
# usage nuke_format format_name
-SED=$(which gsed)
+SED=$(command -v gsed)
EDITOR="${EDITOR:-vim}"
# $1 = format $2 = file in all functions
echo "If you get \"unhandled instruction bytes: 0xF 0xC7\" warnings from" 1>&2
echo "valgrind your valgrind is too old." 1>&2
echo "valgrind 3.13.0 and later should not have this problem." 1>&2
- echo "$(which valgrind) is $(valgrind --version)" 1>&2
+ echo "$(command -v valgrind) is $(valgrind --version)" 1>&2
echo "" 1>&2
}